package com.iwhalecloud.uncc.model;


import java.io.Serializable;
import java.util.Date;

/**
 * 采集任务表
 */
public class InsCollectTask implements Serializable, BaseDto {

    private static final long serialVersionUID = -1296651403457422393L;
    private Long id;
    private String taskCode;
    private String strategyId;
    private String templateId;
    private String sourceId;
    private String processId;
    private String abstractId;
    private String serviceId;
    private String batchNo;
    private Date dispatchDate;
    private Date startDate;
    private Date endDate;
    private int state;
    private String errorDesc;
    private int policyType;
    private int isSupplement;
    private Long parentTaskId;
    private Long rootTaskId;
    private String partitionCode;

    private Date supplementDispatchDate;
    private Integer retryCount;
    private int tryCount = 0;
    private String blockHandle;
    private Integer idleTimeout;

    private String msgId;//多云回调参数
    private InsCollectStrategy nextStratgye;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getStrategyId() {
        return strategyId;
    }

    public void setStrategyId(String strategyId) {
        this.strategyId = strategyId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getAbstractId() {
        return abstractId;
    }

    public void setAbstractId(String abstractId) {
        this.abstractId = abstractId;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public Date getDispatchDate() {
        return dispatchDate;
    }

    public void setDispatchDate(Date dispatchDate) {
        this.dispatchDate = dispatchDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getErrorDesc() {
        return errorDesc;
    }

    public void setErrorDesc(String errorDesc) {
        this.errorDesc = errorDesc;
    }

    public int getPolicyType() {
        return policyType;
    }

    public void setPolicyType(int policyType) {
        this.policyType = policyType;
    }

    public int getIsSupplement() {
        return isSupplement;
    }

    public void setIsSupplement(int isSupplement) {
        this.isSupplement = isSupplement;
    }

    public Long getParentTaskId() {
        return parentTaskId;
    }

    public void setParentTaskId(Long parentTaskId) {
        this.parentTaskId = parentTaskId;
    }

    public Long getRootTaskId() {
        return rootTaskId;
    }

    public void setRootTaskId(Long rootTaskId) {
        this.rootTaskId = rootTaskId;
    }

    public String getPartitionCode() {
        return partitionCode;
    }

    public void setPartitionCode(String partitionCode) {
        this.partitionCode = partitionCode;
    }

    public Date getSupplementDispatchDate() {
        return supplementDispatchDate;
    }

    public void setSupplementDispatchDate(Date supplementDispatchDate) {
        this.supplementDispatchDate = supplementDispatchDate;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public int getTryCount() {
        return tryCount;
    }

    public void setTryCount(int tryCount) {
        this.tryCount = tryCount;
    }

    public String getBlockHandle() {
        return blockHandle;
    }

    public void setBlockHandle(String blockHandle) {
        this.blockHandle = blockHandle;
    }

    public Integer getIdleTimeout() {
        return idleTimeout;
    }

    public void setIdleTimeout(Integer idleTimeout) {
        this.idleTimeout = idleTimeout;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public InsCollectStrategy getNextStratgye() {
        return nextStratgye;
    }

    public void setNextStratgye(InsCollectStrategy nextStratgye) {
        this.nextStratgye = nextStratgye;
    }
}
